/**
 * Created by ospip on 2018/10/31.
 * Copyright (c) 2018 LLAP. All rights reserved.
 */
public class Moon {
    private static Moon currentInstance = null;
    private double radius = 7000;
    private double distance = 384400;

    public Moon() {}

    @Override
    public String toString() {
        return "Radius = " + radius + " & Distance = " + distance;
    }

    public double getRadius() {
        return radius;
    }

    public double getDistance() {
        return distance;
    }

    public static Moon getInstance() {
        if (currentInstance == null) currentInstance = new Moon();
        return currentInstance;
    }
}
